QT       += core gui xml opengl network

TARGET = catGUI
TEMPLATE = app

unix {
    INCLUDEPATH += /usr/local/qwt-6.0.2/include/
    LIBS += -L/usr/local/qwt-6.0.2/lib/
}

QWTPLOT3D_VER = 0.2.7
MINGW_VER = 4.6

unix {
    INCLUDEPATH += /usr/include/qwtplot3d-qt4
    LIBS    += -L/usr/lib -lqwtplot3d-qt4
    INCLUDEPATH += /usr/include/GL
    LIBS    += -L/usr/lib/i386-linux-gnu -lGLU
}

win32 {
    win32-x-g++ {
        QWTPLOT3D_PATH = /usr/qwtplot3d-win
        GLU_PATH = /usr/glu-win
    } else {
        QWTPLOT3D_PATH = C:/Qt/qwtplot3d-$${QWTPLOT3D_VER}
        GLU_PATH = C:/Qt/mingw-$${MINGW_VER}
        contains(MINGW_VER,^4\\.7(\\.\\d*)?) {
            GLU_PATH = $${GLU_PATH}/i686-w64-mingw32
        }
    }
    CONFIG(debug,debug|release) {
        DEBUG_SFX = d
    } else {
        DEBUG_SFX =
    }
    INCLUDEPATH += $${QWTPLOT3D_PATH}/include
    LIBS    += -L$${QWTPLOT3D_PATH}/lib -lqwtplot$${DEBUG_SFX}3d
    INCLUDEPATH += $${GLU_PATH}/include/GL
    LIBS    += -L$${GLU_PATH}/lib -lglu32
}


SOURCES += main.cpp\
        mainwindow.cpp \
    NodeBase.cpp \
    BranchBase.cpp \
    GraphicsScene.cpp \
    GraphicsView.cpp \
    Branch.cpp \
    Node.cpp \
    XmlParser.cpp \
    ClpBoard.cpp \
    Resizer.cpp \
    BranchWidthDialog.cpp \
    BranchParamDialog.cpp \
    NodeParamDialog.cpp \
    GraphicsObject.cpp \
    TagBase.cpp \
    Tag.cpp \
    TagDialog.cpp \
    Baloon.cpp \
    rpaReader.cpp \
    Multipole.cpp \
    MultipoleDialog.cpp \
    PreferencesDialog.cpp \
    T2C/QueryMicroMan.cpp \
    T2C/cs_t2cmanager.cpp \
    T2CDialog.cpp \
    TableModel.cpp \
    TableDialog.cpp \
    AssignCSParamDialog.cpp \
    Chart.cpp \
    HistogramPloter.cpp \
    Histogram.cpp \
    HistogramSettingsDialog.cpp \
    WheelZoom.cpp \
    SplineGau.cpp \
    MainPlot.cpp \
    SplineFourier.cpp \
    SplineBase.cpp \
    CartFromCsv.cpp \
    TChart.cpp \
    TCurve.cpp \
    TChartAxesScaler.cpp \
    MainPlot3D.cpp \
    TChart3D.cpp \
    Bar3D.cpp \
    Histogram3D.cpp \
    E4.cpp \
    TLabel.cpp

HEADERS  += mainwindow.h \
    common.h \
    NodeBase.h \
    BranchBase.h \
    GraphicsScene.h \
    GraphicsView.h \
    Branch.h \
    Node.h \
    XmlParser.h \
    ClpBoard.h \
    Resizer.h \
    BranchWidthDialog.h \
    BranchParamDialog.h \
    NodeParamDialog.h \
    GraphicsObject.h \
    TagBase.h \
    Tag.h \
    TagDialog.h \
    Baloon.h \
    Multipole.h \
    MultipoleDialog.h \
    PreferencesDialog.h \
    ShowParam.h \
    T2C/QueryMicroMan.h \
    T2C/ProcessVariable.h \
    T2C/cs_t2cmanager.h \
    T2C/common.h \
    T2CDialog.h \
    TableModel.h \
    TableDialog.h \
    AssignCSParamDialog.h \
    Chart.h \
    HistogramPloter.h \
    Histogram.h \
    ColorMap.h \
    HistogramSettingsDialog.h \
    WheelZoom.h \
    SplineGau.h \
    MainPlot.h \
    SplineFourier.h \
    SplineBase.h \
    TChart.h \
    TCurve.h \
    TChartAxesScaler.h \
    MainPlot3D.h \
    TChart3D.h \
    Bar3D.h \
    Histogram3D.h \
    E4.h \
    TLabel.h


OTHER_FILES += \
    img/pixNode.xpm \
    img/pixUnion.xpm \
    img/pixTag.xpm \
    img/pixMultipole.xpm \
    img/logo.ico \
    logo.rc \
    img/pixRGB.xpm \
    img/pixOpen.xpm \
    img/pixTools.xpm \
    img/pixAdjust.xpm \
    img/pixMesh.xpm \
    img/pixSurf.xpm \
    img/pixBars.xpm

FORMS += \
    CSParamShowDialog.ui \
    ConnectionDialog.ui \
    TChartClrDialog.ui

RC_FILE = logo.rc

include( qwt.pri )

#QMAKE_CXXFLAGS_DEBUG += -g3 -pg
#QMAKE_LFLAGS_DEBUG += -pg -lgmon
